package com.itcc.dao;

import com.itcc.entity.User;

import java.sql.SQLException;
import java.util.List;

//负责用户名模块访问数据库的接口
public interface UserDao {
    //查询用户是否存在
    User selectUserByUname(String username) throws SQLException;

    int insertUser(User user) throws SQLException;

    User selectUserbyCode(String code) throws SQLException;

    int updateStatusByUid(int uid) throws SQLException;

    List<User> findAllUser() throws SQLException;
}
